package com.daigoudao.web.service;

import java.util.List;

import com.daigoudao.web.model.ShortMessage;

public interface IShortMessageService {

	public void addShortMessage(ShortMessage shortMessage) throws Exception;

	public List<ShortMessage> queryShortMessage(ShortMessage shortMessage)
			throws Exception;

	public void addShortMessages(List<ShortMessage> shortMessage)
			throws Exception;

	public int getMessageCount(ShortMessage shortMessage) throws Exception;

	public boolean saveShortMessage(ShortMessage shortMessage) throws Exception;

	public List<ShortMessage> queryReplys(int smid) throws Exception;

	public void delMessages(int userType, int[] smids) throws Exception;

	public List<ShortMessage> queryShortMessagesByBroker(
			ShortMessage shortMessage) throws Exception;

	public int getShortMessageCountByBroker(ShortMessage shortMessage)
			throws Exception;

	public void addReplyMessage(ShortMessage shortMessage) throws Exception;

	public void alreadyRead(int smid) throws Exception;
	
	public List<ShortMessage> queryShortMessagesByBuyer(
			ShortMessage shortMessage) throws Exception;

	public int getShortMessageCountByBuyer(ShortMessage shortMessage) throws Exception;
}
